documentType=application/json?
On the flip side of the JSON output thread, it would be cool if Placemaker could extract references from JSON content. It already supports "text/xml" and "application/xml", so "application/json" could be processed with similar semantics.
Similar to many JSON APIs, it would probably make sense for a parameter specifying a JSON callback function to be provided when this documentType is used.
Since there is no standard equivalent of XPath for JSON that I know of, I'm not sure what you'd provide as a path descriptor for each reference, but it would ideally be directly usable as Javascript expression to extract the data item containing the reference.
-md
by
2 Replies