The jsonp
quickstart demonstrates how to use the JSON-P API to produce object-based structures and then parse and consume them as stream-based JSON strings.
The jsonp
quickstart creates a JSON string through object-based JSON generation and then parses and consumes it using stream-based JSON.
It shows how to use the JSON-P API to generate, parse, and consume JSON files.
Access the running application in a browser at the following URL: http://localhost:8080/{artifactId}/
-
You are presented with a simple form that is pre-filled with personal data. You can change those values if you prefer.
-
Click on the Generate JSON String from Personal Data button. The text area below the button presents a JSON string representing the data and values from the completed form.
Note that the JSON string contains String, number, boolean and array values.
-
Now, click on the Parse JSON String using Stream button. The text area below the button shows the events generated from the parsed JSON string.