Fixes naming bug in JSON API