skip to Main Content

convert a string of objects, from a jsonString

"{"schema":{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"a":{"type":"string","dataType":"TEXT","validation":"TEXT"},"object":{"type":"object","properties":{"fname":{"type":"string","dataType":"TEXT","validation":"TEXT"},"lname":{"type":"string","dataType":"TEXT","validation":"TEXT"}},"additionalProperties":false,"required":["fname","lname"],"dataType":"OBJECT","validation":"OBJECT"}},"additionalProperties":false,"required":["a","object"],"dataType":"OBJECT","validation":"OBJECT"},"fieldRequirements":{"name":"object1","type":"object","required":true,"subfields":[{"name":"a","type":"text","required":true,"subfields":[]},{"name":"object","type":"object","required":true,"subfields":[{"name":"fname","type":"text","required":true,"subfields":[]},{"name":"lname","type":"text","required":true,"subfields":[]}]}]}}" This is my json string, i want to get a string from properties in above json string like this "{"a":"b","object":{"fname":"Sho","lname":"Sho"}}", any idea how to do? i tried using field names but i m just getting fields and not able…

VIEW QUESTION

Can not deserialize JSON with json string inside

I have a json like below. The x's are there to omit sensitive data {"errormessage":"{"timestamp":"2021-10- 19T07:57:35.205+0000","status":400,"error": "Bad Request","message":"Bad Request: xxxx xxx xxx xxx xxx. pathu003d/xxx/verify","path":"/xxx /xxx"}"} I am trying to deserialize this json into the class below public class TransferResponse…

VIEW QUESTION
Back To Top
Search