You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1. It would be great if the root element for JSON could be declared via annotation. There's little charm to do this explicitly with every response.
The problem I'm concerned about is a JSON Array hack.
I see there is an XmlRoot option for xml, what's the easiest way to do this for json?
Rather than this
I'd like to get
The only way i can think to accomplish this is to json_decode it, add it to a
stdClass
and then json_encode it back again:There's got to be an easier way.
The text was updated successfully, but these errors were encountered: