Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/java-jsonPublic template

Robust and efficient JSON parser and generator that includes line and column tracker for error handling. Can handle strings as well as streams for parsing and generating.

License

NotificationsYou must be signed in to change notification settings

LupCode/java-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Robust and efficient JSON parser and generator that includes line and column tracker for error handling.
Can handle strings as well as streams for parsing and generating.

Requires:

How to use:

StringjsonStr ="{\"Hello World\":[{\"Test\":1.2,\"Bye\":null},345,]}";// Automatically detects class needed to parse JSONJSON<?>autoJson =JSON.parseAutoJSON(jsonStr);System.out.println(autoJson.toString(true));// Another example that shows how errors in the JSON data can be handledtry {JsonObjectjsonObj =JsonObject.parse(jsonStr);System.out.println(jsonObj.toString());}catch(JsonParseExceptionex) {LineColumnTrackerlct =ex.getLineColumn();if(lct !=null)System.out.println("Error occurred at line "+lct.getLine()+", column "+lct.getColumn());elseex.printStackTrace();}

References:

About

Robust and efficient JSON parser and generator that includes line and column tracker for error handling. Can handle strings as well as streams for parsing and generating.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp