json: implemented decoder