API implementation: fixed json data decode