I currently make use of a custom format for our backend responses, which pretty much is designed to be as simplistic/small as possible. Currently the ember app uses ember-data, but I am having plans to move to ember-orbit as we would like to offer better support for things like an offline mode.
I had been looking into using jsonapi previously, but in the end I never made the change, because jsonapi seems to be somewhat verbose (and taking that step always means a big change - both with ember and the backend).
However, there are a few additional things:
- Using jsonapi would mean less customisations with ember-data/orbit due to jsonapi support
- On the java backend there seems to be a nice library in order to support jsonapi (crnk-framework)
- Responses are compressed, so being more verbose doesn’t necessarily mean a noteworthy increase in payload size
- It will make it more easier to let the client specify which child entities need to be included in the response
Given that our app is somewhat complex by now, I am still hesitant if I really should start to migrate to jsonapi. Doing it together with moving to orbit, however, seems like a reasonable idea.
So, if you migrated from a custom format to jsonapi, I am interested in your experience. Do you think it was worthwhile in the end? Did you encounter any noticeable performance impacts or other issues?