Update to JSON to allow attribute metas at the beginning
Merged json2 branch