We asked our LinkedIn audience:
Which Technology Would You Use to Process JSON?
And they replied:
These answers are fantastic! Based on performance testing and research, PeopleCode native JSON objects, such as JsonObject and JsonArray, perform much faster than the Documents module or external Java libraries. However, there are times when I might choose an alternative.
Java Libraries
PeopleCode leverages the Java Native Interface to provide bidirectional access to Java. Java classes can interact with PeopleCode functions and objects, and vice versa. In addition to the delivered Java API, PeopleSoft provides several key Java libraries, including the Jakarta JSON library. Jakarta stream processing enables us to process enormous datasets. This stands in contrast to native DOM-based JSON parsing, which is limited by the amount of system memory available.
Documents
A document structure may generate either XML or JSON, which might simplify solution development when creating APIs that support multiple output types. Likewise, a document structure is required when creating a REST URI template.
Additional Resources
- PeopleCode JSON API
- JSON Stream Processing Blog Post
- PeopleSoft Documents module
- Jakarta JSON Processing
No comments:
Post a Comment