Opened 11 years ago

Closed 11 years ago

#2508 closed defect (fixed)

json output does not follow json "standard"

Reported by: Xoff Owned by: openstreetmap@…
Priority: trivial Milestone:
Component: nominatim Version:
Keywords: json Cc:

Description

The json output generated by nominatim wraps strings in single quotes instead of double quotes. While this is still valid javascript code and evaluates perfectly it violates the "standard" described on http://json.org/.

This might look like nitpicking but it causes the json converter functions in Openlayers and prototypejs to fail because they sanitise the json data based on the json standard before evaluating it.

I think, especially Openlayers is a library that will often be used in combination with nominatim. So, it would be really nice if it were possible to use OpenLayers?.Format.JSON to decode the json data returned from nominatim.

Change History (1)

comment:1 Changed 11 years ago by twain

Resolution: fixed
Status: newclosed

Should be fixed

Note: See TracTickets for help on using tickets.