Giter VIP home page Giter VIP logo

dson.djs's Introduction

DSON.djs

Build Status NPM

A DSON parser in Dogescript. What am I doing?!

Work in progress. It mostly works, but there are probably some edge cases still.

Install

If you're using Node/Browserify:

npm install dson-djs
var DSON = require('dson-djs')

Otherwise, just add the build/DSON.js file to your page, and use the new global variable DSON.

Usage

  • DSON.parse(str) - Parses a string of DSON into a JSON object
  • DSON.dogeify(obj) - Converts an object into a DSON string

dson.djs's People

Contributors

remixz avatar junosuarez avatar

Stargazers

Sean P. Myrick V19.1.7.2 avatar Frederik Ring avatar Chris Brooks avatar Balázs Édes avatar Mo Ye avatar Piotr Kowalski avatar William Falk-Wallace avatar Greg Smith avatar  avatar Bart van der Schoor avatar  avatar  avatar Sylvia avatar

Watchers

James Cloos avatar  avatar Jan avatar  avatar Thomas Hickman avatar  avatar Sean P. Myrick V19.1.7.2 avatar

dson.djs's Issues

Parsing skips object members in some cases

> const DSON = require("./build/DSON.js");
undefined
> DSON.parse('such "foo" is 1, "bar" is "baz" wow')
{ foo: 'baz' }
> DSON.parse('such "foo" is 1, "bar" is "baz", "bat" is "quz" wow')
{ foo: 'baz', bat: 'quz' }
>

Seems to be related to number parsing?

Very parse, no json. Sad shibe.

Input DSON: such "foo" is "bar" wow
Output JSON: { foo: 'bar' }

but should be: {"foo": "bar"}

No parse :(

PS: Nice job though :)

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.