Skip to content

Projecting JSON #22

Jan 27, 2023 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

@mdavidovichHst it's good to hear from you again!

%pkg.isc.json.adaptor defines a parameter that can be overridden to avoid such compilation errors:

/// %JSONDEFAULTMAPPING may be set to 0 (default is 1) to suppress creation of the default JSON mapping for the object.
Parameter %JSONDEFAULTMAPPING As BOOLEAN = 1;

This means that you can JSON-enable a class without JSON-enabling every other registered class referenced by it directly or indirectly. It does, however, mean that you need to define custom JSON mappings (in XData blocks) to be able to do JSON import/export with just the subset of properties you're interested in.

I believe (but haven't tested/verified) that overriding the %JSONR…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@isc-tleavitt
Comment options

@mdavidovichHst
Comment options

Comment options

You must be logged in to vote
7 replies
@isc-tleavitt
Comment options

@mdavidovichHst
Comment options

@isc-tleavitt
Comment options

@mdavidovichHst
Comment options

@isc-tleavitt
Comment options

Answer selected by mdavidovichHst
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