KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Can anyone suggest a JSON parser that allows any kind of comments, with PHP bindings - need the comments badly for config files but json_decode doesn't support them. (I am aware of: 1. other format such as YAML, 2. comments are not part of the standard) Update: Why don't we use: YAML: Benchmarks show it's slower - and we might want to send the data over the wire - not sure if YAML is best for that. XML: too verbose - simple human editing is a requirement. And no need for the extended features of XML. INI: there is hierarchy and nesting of variable depth in the data. And we need a ubiquitous format as the data might be distributed with apps or work with apps in other languages. Pre-processing: data can be contributed and shared by users, tough to impose a requirement to pre-process before adding data to an app.
Tags (comma-separated)
Save Edits
Cancel