Git Product home page Git Product logo

json4haxe's Introduction

json4haxe

Proposal for a JSON implementation for haXe standard library.

Features

The implementation is based on the hxJson2 implementation of JSON decoding and encoding. A few thing were changed to make the library smaller and faster and a better fit the haXe standard library. On the haXe PHP target this libray uses native json_decode and json_encodefunctions. On the haXe JavaScript target it tries to use JSON.stringify and JSON.parse if possible. When native functions are used there could be differences in the output compared with haXe version of haxe.json.JSON.decode and haxe.json.JSON.decode.

Building and testing

Currently testing runs on the nekoVM, PHP and JavaScript platform. For testing JavaScript target PhantomJS is used.

Building

To build all the targets run: haxe build.hxml

Testing requirements

  • haxe installed ;-)
  • nekoVM installed
  • PHP installed
  • phantomJS

phantomJS is included in this git repository as a submodule (git submodule update --init). For build instructions check out the build instructions.

Testing

To run tests on all platforms run ./run.sh

Help & Contribute

If you like to help feel free to fork this repository and send me pull requests OR ask me to become a constributer on this repository. If you found a bug, please create an issue.

Use this library

Make sure to include the std folder in build command. (E.g.: haxe ... -cp /path/to/lib/std ...)

json4haxe's People

Contributors

thehippo avatar

Stargazers

70/V9 avatar  avatar Mike avatar

Watchers

 avatar James Cloos avatar

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.