Allow fields to be json literals
See original GitHub issueIn 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
Issue Analytics
- State:
- Created 9 years ago
- Comments:8
Top Results From Across the Web
JSON Object Literals - W3Schools
JSON object literals contains key/value pairs. Keys and values are separated by a colon. Keys must be strings, and values must be a...
Read more >Are multi-line strings allowed in JSON? - Stack Overflow
Newlines are "control characters" so, no, you may not have a literal ... JSON does not allow "real" newlines in its data; it...
Read more >Working with JSON data in Google Standard SQL | BigQuery
By ingesting JSON data as a JSON data type, BigQuery can encode and process each JSON field individually. You can then query the...
Read more >Working with JSON - Learn web development | MDN
In this article, we've given you a simple guide to using JSON in your programs, including how to create and parse JSON, and...
Read more >JSON methods, toJSON - The Modern JavaScript Tutorial
Let's say we have a complex object, and we'd like to convert it into a string, to send it over a network, or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Original comment by
adrian.f...@gmail.com
on 2 Jan 2012 at 10:51Original comment by
fernc...@gmail.com
on 2 Jan 2012 at 5:51