Have JSON parser work with pre parsed json

* Avoid requring a raw string if we already have a json object