News for hackers. Stuff that matters.
Re:Fat JSON by heterogenic on Tuesday May 06, 2014 @08:59AM (#7704118)
Help me out here HN... I remember somewhere seeing an API format where you passed up the empty JSON object which you wanted filled and returned.

Something like:

  (request)
  {username:"",address:"",credits:""}

  (response)  
  {username:"Manilow, Barry", address:"Hollywood Bowl", credits: 99}  
  
Clearly not optimal, but it worked pretty well and was very intuitive.
Re:Fat JSON by junto on Tuesday May 06, 2014 @02:13PM (#7706149)
I think you might be looking for this: https://news.ycombinator.com/item?id=7681973
Re:Fat JSON by heterogenic on Tuesday May 06, 2014 @06:02PM (#7707362)
Not it, but it does about the same thing. Thanks!