Add basic support for json and jsonarray