Git Product home page Git Product logo

json_kata's Introduction

My JSON kata

To grow as programmers, it is helpful to look at how people train in other areas, e.g., sports. Most martial arts have a similar notion as Karate's "kata": A simulated fight against imagined enemies, using a set of well known movements to practice and internalize techniques.

This is my programming kata: To write a JSON parser in multiple programming languages, testing against a wide variety of generated test cases.

The Challenge

  1. Write a program that takes a valid JSON string as input, parses it into an AST, then prints it as JSON.
  2. All content must be preserved on this roundtrip, but not its form (e.g., the order of keys may vary).

The Jury

A python unit test will be run against each executable. It generates valid JSON data to pass to the executable and measures its runtime performance. All programs will be presented with the same inputs for comparability; generation is random, but based on a fixed seed.

The output of each program will be parsed by the test program to

  1. check for presence and identical contents of every key,
  2. check validity of the generated JSON

json_kata's People

Contributors

jkorinth avatar

Watchers

 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.