std_data_json
std_data_json copied to clipboard
Phobos candidate JSON implementation.
The signature of `parseJSONStream()` constrains the input type to `InputRange`, but it seems like it actually requires a `ForwardRange` due to the calls to std.algorithm.skipOver() in lexer.d. I was trying...
About naming
For me naming looks very strange. For example `toJSON` `Converts the given JSON document(s) to its string representation`, but by it's name I expect that it should convert string to...
Currently this requires either `JSONValue(cast(JSONValue[])null)` or `"[]".toJsonValue()`.
The following fails to compile: ``` static void test(in string a, in string b) { auto filter = parseJSONValue(a); auto obj = parseJSONValue(b); } ``` And so does the following:...
- better examples of how to do something useful using the stream parser with real data. you could use Twitter feed, or for example the metadata from Quandl: http://www.quandl.com/api/v2/datasets.json?query=*&source_code=SEC&per_page=300&page=1 I...
JSONToken.string does not present a memory safe interface, as it may return a dangling reference if the token's `kind` is not a string.
`void` initialization of bools is no longer allowed in `@safe` code. A trivial fix.