Update json.cpp documentation.
Make some variable names more consistent.
Implement static access for JSON arrays.