Fix json reader for lines

It may not provide a perfect solution but it works for our sample demo app. 
Ah.. that's the missing bit. Will add. By the way.. the script to upload images worked very nicely! thanks for doing that.