From 132c4e84b6d7e917512f975d9906d6952262ef1f Mon Sep 17 00:00:00 2001 From: James Taylor Date: Fri, 20 Aug 2021 10:45:29 -0700 Subject: [PATCH] Update 06_Implementing_an_API_service.md --- .../06_Implementing_an_API_service.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Networking and Data Storage with Kotlin Multiplatfrom Mobile/06_Implementing_an_API_service.md b/Networking and Data Storage with Kotlin Multiplatfrom Mobile/06_Implementing_an_API_service.md index d717873..94c5e28 100644 --- a/Networking and Data Storage with Kotlin Multiplatfrom Mobile/06_Implementing_an_API_service.md +++ b/Networking and Data Storage with Kotlin Multiplatfrom Mobile/06_Implementing_an_API_service.md @@ -17,7 +17,10 @@ import kotlinx.serialization.json.Json class SpaceXApi { private val httpClient = HttpClient { install(JsonFeature) { - val json = Json { ignoreUnknownKeys = true } + val json = Json { + ignoreUnknownKeys = true + useAlternativeNames = false + } serializer = KotlinxSerializer(json) } }