Added fromJsonString and support for custom HTTP headers.