Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Friendlier extension JSON for non-standard JSON consumers #13

Open
sttawm opened this issue Jun 30, 2020 · 1 comment

Comments

@sttawm
Copy link

sttawm commented Jun 30, 2020

Currently, this project's JSON printer produces complex and deeply nested json for extensions (as per the standard). It would be nice if the printer produced a simpler JSON, for i.e. clients that were willing to accept non-standard FHIR.

One could imagine running the standard protobuf json printer to simplify printing of extensions, but then again the overall JSON becomes more complex (with lots of nested "value").

@nikklassen
Copy link
Member

Have you taken a look at the output when using the analytic schema (kFormatAnalytic in the C++ parser)? It is designed to promote Extensions to first class values, and limit recursive depth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants