Giter VIP home page Giter VIP logo

simplejson's People

Contributors

markuskreth avatar ralleytn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

simplejson's Issues

Pretty Print Not Really Working

Issues: Pretty print in JSONFormatter doesn't allow for printing large json objects to a file only the indexed amount of chars which in unicode form most common json type is around 500 million chars. Sounds like alot but, actually isn't for a decent size json file.

Pretty print doesn't look right when outputted compared to test against json and https://jsoneditoronline.org/

when writing to the file using the very own writing built in there is no boolean for pretty print either remove it or add a param boolean for pretty print.

Pretty Print String Limitations

Pretty print in JSONFormatter doesn't allow for printing large json objects to a file only the indexed amount of chars which in unicode form most common json type is around 500 million chars. Sounds like alot but, actually isn't for a decent size json file.

Yes you can still support string/reader but, there should be a method inside where it only accepts Writer and will properly write the whole json object/array to the file the first time

Maven support

Can I find the library in a maven repository?
Or can we get an jar file containing all the files?

Wiki summary items are not ordered

A very little typo in the Summary of the Wiki. We have :

On the page

  • Home
  • Parsing
  • Fromatting
  • Serialization

In the right menu

  • Home
  • Fromatting
  • Parsing
  • Serialization

Parsing and Formatting urls are not ordered.

No Exceptions Occur with Invalid JSON String

Original issue found here and still persists in current library:
fangyidong/json-simple#16

Test code no exceptions occur when it should occur:
https://pastebin.com/nq0CfHjX

Test 2 this is an invalid json string due to a dupe key when parsing. It''s fine if you want to replace a key using JSONObject.pu() in memory but, when parsing it from a file/invalid sting if they key already exists in that file/string then it is no longer acceptable

JSONParser parser = new JSONParser();
System.out.println("Done:" + parser.parse("{\"key\":1 \"key\":2}"));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.