Fixed JSON bug.
Updated docs.