dsl-json icon indicating copy to clipboard operation
dsl-json copied to clipboard

JsonValue syntax tree

Open andyglow opened this issue 1 year ago • 7 comments

Hi! I'm looking on how to get json (or it's part) parsed into a valid Json Value. Either it is an json object or json array or any other valid type.

I know today I can refer an Object type and parser will do the job by sending me a combination of lists and maps and primitives of all kinds. But what am I looking is rather something similar to circe Json or jsoniter Any or jackson JsonNode, something that would represent a json language.

Why do I need it is because part of request that I parse has fuzzy structure and I don't know in advance what type of value is there. I can use Object, as I noticed earlier, but I don't want to keep it as abstract as Object is.

Can you suggest something?

PS: I also understand that I potentially can create my own hierarchy of classes or something and there is @JsonConverter that I could use to write my own parser, but I was wondering if there something similar that already exists.

Thank you

andyglow avatar Nov 02 '23 01:11 andyglow