Skip to content
Discussion options

You must be logged in to vote

This is one of the trickier parts that I haven't been able to solve nicely. Basically, when the response is an array of objects, the .Item property of an item in the array (e.g. the .ManagedObject in this case) does not have the raw JSON related to that items json array...so you can't access custom fields from it.

For most collections, the sdk adds a generic .Items which is an array of gjson objects, where gjson can be used to access any field using dot notation. Though the problem you ran into was that the managed object references structs, didn't have the .Items set, however I've just pushed a new version, v0.28.0 to fix this, and added a client example where I just took your example ab…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@k-butz
Comment options

Answer selected by k-butz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants