nddrylliog/rock — Issue #334: JSON parser/generator improvements
Author: nddrylliog
Created: 2011-11-19 04:23:56+00:00
State: open

Since we're using it in production, I'd like to see a few improvements to the text/json package:

1) It, and HashBag, should not segfault when we get() a key that doesn't exist, it should merely throw an exception or return null.

2) We should have an easy way to travel down HashBags, ie. something like bag path("category/38/subscribers/4/login", String) and have it throw exceptions if it can't travel along the way.

3) It should be namespaced correctly, right now it just throws functions like 'parse', 'generate' and 'generateString' in the namespace. Even if we did have namespaced imports in rock (ping @fredreichbier @showstopper), it's not really acceptable to pollute the namespace with such generic names. They should probably be static functions in a 'JSON' class instead.