Skip to content

JsonValue syntax tree #265

@andyglow

Description

@andyglow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions