httpclient: better json and property tree support