Giter Club home page Giter Club logo

hijson's People

Contributors

nadako avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hijson's Issues

Error positions

Need a nice way to throw errors from consumers and display their position in the JSON.

Maybe also provide an offset to line:character converter/formatter.

Macro building of Consumers

Similar to tink_json/json2object we can have some standard macro-powered Consumer builders.

This needs some design and will be opinionated, but still very useful.

Haxelib Release

Should do that after everything is implemented and tested

Test all targets

Add travix to test the library on all Haxe targets. It's pure Haxe so it should work, although some targets like C# have issues with type parameters, so let's see.

Add standard type consumers

In addition to #2 we need some standard consumers for:

  • String
  • Int
  • Float
  • haxe.Int64
  • Bool
  • Array (using child consumers for elements)
  • DynamicAccess (using child consumers for values)
  • StringMap/IntMap (using child consumers for values)
  • Null (forward parsing to child consumer, but also allow null)
  • haxe.ds.Option (basically the same as Null)
  • haxe.ds.Either

BaseConsumer

Base class for consumers that throws "Unexpected thing" in every method. Children can then override one or more of the methods to add actual processing.

Add proper integer parsing function

Right now we're using Std.parseInt for parsing integers, but that function is too permissive, because Std.parseInt("5.2") will produce 5 and that's not what we want.

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.