Greg Freemyer wrote:
Is there a decent JSON viewer in the distro or in OBS.
I'm trying a firefox plug-in (JSONview) and I'm not very impressed.
Good question. I normally use vi, which probably shows how much JSON I try to read! I looked at the blurb for JSONview and downloaded example.json and ran it through json_xs, which I happen to have installed only to find: malformed JSON string, neither array, object, number, string or atom, at character offset 0 ["\x{feff}{"hey": "guy..."] Looking at section 3 (Encoding) of the JSON spec http://www.ietf.org/rfc/rfc4627 it is quite explicit that there shouldn't be a BOM there! So my 5 minute view of the plug-in is also 'not very impressed' and I haven't even installed it! Searching for some combination of json, tidy, beautifier finds lots of possibilities. After I stripped the BOM, json_xs produces similar results as http://jsbeautifier.org/, though the order of fields differs. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org