Allow for device and assets to be provided in JSON as well. The JSON support needs to be ported to rapidjson and support added for version 1 and 2.