I got class names using SOQL.
SELECT Name FROM ApexClass
Put those classes in the below structure:
And deployed using meta-data.
Though this is not what I would prefer but this is what I had.
The <name> element of the package.xml is the name of the metadata entity you wish to retrieve. The API names of the individual items within that entity which you desire go in the <members> elements.
Here, you need to do something like this:
Wrapping up as an answer : "In JSON specification, it requires the use of double-quotes for field names. To enable Jackson to handle the unquoted field name, add JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES in the ObjectMapper configuration."In JSON, unquoted field names are non-standard and should be avoided.
Also try validating the JSON here jsonlint.com,...
Workbench authenticates to Salesforce as a user and has the same rights and privileges that are permissioned to that user. If you wish to restrict Workbench operation, you'll need to limit the permissions offered to users who connect through Workbench by, for example, placing them on a Read-Only profile. Running queries and modifying records both fall under ...
Ultimately, I learned that nested queries such as the one above are easily manipulated within Apex. The child-relationship's API name can be looped on as easily as one would loop through a list of lists. I hadn't realized this was possible in Apex so this issue was more caused by a lack of knowledge than by the necessity of a complex solution. :)