Playing with ideas for json api