Giter Site home page Giter Site logo

ismaelrg90 / android-json Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kbsriram/android-json

0.0 2.0 0.0 337 KB

Standalone json support library, extracted from the main Android source. Useful for testing without full Android framework.

android-json's Introduction

Android JSON

This is a standalone source for json support, extracted from the main Android source code. Building the jar file lets you run tests that use org.json methods, without requiring the entire android framework.

Why bother with this library, when you can directly get json parsing code from elsewhere? It is to ensure that you can use the same code and API that android uses. For instance, Android uses an API derived from Douglas Crockford's org.json implementation although the two apis have diverged since then.

Using the library

The quickest way is to download the android-json.jar and add that to your test code libraries.

Regenerating the library

If you prefer, clone this repository, and run ant clean dist.

Please note that the source code compiles with warnings related to missing serialVersionUID in a couple of serializable classes.

Please also note that one of the test cases do not pass. This appears to be a low-priority bug in Android and described as "a low-impact bug, also present in Crockford's implementation of org.json".

The failing test case is org.json.ParsingTest#test64BitHexValuesw, and it reports the error Large hex longs shouldn't be yield ints or strings...

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.