Skip to content

Quotes should not be implicitly escaped when request body is being stringified #16

@Kietyo

Description

@Kietyo

Example:

    suspend fun putData(): Any {
        val response = restClient.put(
            "users/bob/name.json",
            """
                { "first": "Jack", "last": "Sparrow" }
            """.trimIndent()
        )
        return response
    }

Example test:

    @Test
    fun putData() = runBlockingNoJs {
        val datastore = DatastoreKorge()

        val data = datastore.putData()

        println(data)
    }

This makes it unusable for firebase database:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Pending

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions