works properly to parse json from webapi