Gets an object that's the value of a field, such as one written with jsonBeginObjectField.
Takes the JSON text and the field's name.
Returns the object as JSON text ("{...}"), or "" if there's no such field or its value isn't an object.
JSON
Parameters & Returns
Parameters
jsonString
keyString
Returns
String
Quick Summary
Gets an object that's the value of a field, such as one written with jsonBeginObjectField.
Takes the JSON text and the field's name.
Returns the object as JSON text ("{...}"), or "" if there's no such field or its value isn't an object.
Technical Exegesis...
Gets an object that's the value of a field, such as one written with jsonBeginObjectField. Takes the JSON text and the field's name. Returns the object as JSON text ("{...}"), ready for jsonReadString, jsonReadInt and the other readers, or "" if there's no such field or its value isn't an object.
Use it when two objects have fields with the same name: the readers on their own take the first one they find.
Gets an object that's the value of a field, such as one written with jsonBeginObjectField. Takes the JSON text and the field's name. Returns the object as JSON text ("{...}"), ready for jsonReadString, jsonReadInt and the other readers, or "" if there's no such field or its value isn't an object.
Use it when two objects have fields with the same name: the readers on their own take the first one they find. An empty key ("") means json itself is the object, so this also works on an object from jsonGetArrayElement or jsonReadObject. Like the other readers, it finds the first field with that name at any depth.