<?xml version="1.0" encoding="UTF-8"?>
<project>
  <bugtracker-url nil="true"></bugtracker-url>
  <created-at type="datetime">2008-10-25T10:29:07Z</created-at>
  <description>Now if you dont know what JSON is, it is Javascript Object Notation. It is a way of exchanging Javascript Objects between a server and a client. Your current javascript supports parsing of JSON Strings to Javasript objects, but NOT all server side languages support JSON Script parsing by default. Scala has something, but still i find it a little bit weak, in the sense that you still do a lot of work to actually get you data back.

The only JSON parser for java on www.json.org works, but for me, its too large a workhorse for such a small task as parsing a String into an object. On the JSON website, they have done a lot of work to describe a sort of BNF for what a JSON String looks like, so my solution is this, write a parser(I am comfortable with javacc) that parses JSON Strings and return simple everyday objects, not class wrappers and all that.

A JSON string is either a List, A Map or any Value, so Mason is a parser that parses a JSON String and returns any of this value.

Its so simple to use and straight forward.

sample code?? I'll show you some


                FileInputStream fis = new FileInputStream(new File("/home/trinisoftinc/src/mason/lib/test.json"));

                Mason parser = new Mason(fis);

                parser.parse();

                System.out.println("FINAL Map: " + parser.finalMap);

                System.out.println("FINAL Array: " + parser.finalArray);

If the file test.json is a List, only finalArray is populated. finalArray is an ArrayList, finalMap is an Hashtable and finalValue is just an Object</description>
  <home-url>http://naijadukes.net/</home-url>
  <license>GNU General Public License version 3 (GPLv3)</license>
  <mailinglist-url nil="true"></mailinglist-url>
  <slug>mason</slug>
  <title>Mason</title>
  <wiki-enabled type="boolean">true</wiki-enabled>
  <owner kind="User">trinisoftinc</owner>
  <repositories type="array">
    <mainlines type="array">
      <repository>
        <id>1823</id>
        <name>mainline</name>
        <owner kind="User">trinisoftinc</owner>
        <clone_url>git://gitorious.org/mason/mainline.git</clone_url>
      </repository>
    </mainlines>
    <clones type="array">
    </clones>
  </repositories>
</project>
