You can clone with
HTTPS or Subversion.
I am testing JSONSelect against some activity streams json. The activity streams specification defines an object property in the json.
When I try to match the selector .object .objectType I am getting string required after ..
string required after .
It seems that object is a reserved word for type selectors. I'm hoping a change to this regular expression will solve the problem, but I'm not sure what?
You may use quotes around property names to both force them to be interpreted as strings and to include chars like spaces and control chars that are allowable by the json spec:
Going to leave this open though, it seems like the js parser could disambiguate given context.
Awesome! Thanks for the quick response.
Also worth noting that it seems that the same error occurs when the reserved name is used as part of the property name, so your example would have to be written as:
Actually I'm getting invalid json string when using the above selector? Not sure if that is related to the previous issue though?
invalid json string
This selector also gives the same error:
oh, that's no good. I'll add a test or two and check it out...
fix needless collisions between keywords (like 'string') and property…
… names. closes #17.