Skip to content

Allow fields to be json literals #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GoogleCodeExporter opened this issue Mar 19, 2015 · 8 comments
Closed

Allow fields to be json literals #326

GoogleCodeExporter opened this issue Mar 19, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

In the jclouds project, we often encounter semi-structured data.  For example, 
the structure is known to a certain depth, and after which we'd like to defer 
parsing to an extension.

For example, a json schema could be known to have attributes, which are not 
typed.  We'd like to defer parsing of these attributes.

For example, I'd like to parse the following:

{
    "name": "elmo",
    "attributes": {
        "custom/1": {
            "favorite": "berries"
        },
        "custom/2": 1000
    }
}

into a class like this:

class Thing {
    String name;
    Map<String, String> attributes; 
}

Original issue reported on code.google.com by adrian.f...@gmail.com on 15 May 2011 at 12:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant