Add JSON endpoint from Pippin's tutorial