Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

json output does not follow json "standard" #2508

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

json output does not follow json "standard" #2508

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: Xoff
[Submitted to the original trac issue database at 5.04pm, Thursday, 26th November 2009]

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.

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 8.13pm, Thursday, 26th November 2009]

Should be fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant