Hi! I need convert string bellow to valid JSON: ``...
# getting-started
p
Hi! I need convert string bellow to valid JSON:
Copy code
{
ChallengeParameters: {},
AuthenticationResult: {
AccessToken: eyJraWQiOiI3Qnw,
ExpiresIn: 3600,
TokenType: Bearer,
RefreshToken: yJjdHkiOCcr
}
}
There is simple solution?
r
Here you go 🧌
Copy code
{
  "ChallengeParameters": {},
  "AuthenticationResult": {
    "AccessToken": "eyJraWQiOiI3Qnw",
    "ExpiresIn": 3600,
    "TokenType": "Bearer",
    "RefreshToken": "yJjdHkiOCcr"
  }
}
🕵️‍♂️ 1
👍 1
🤣 6
o
One option is to use HOCON parser, which has a lot of constraints relaxed .
n
this looks like it could be hsjon, so a library for that could turn it into a data class or JsonObject and then back int oa json string