Minor bug (invalid JSON) in example code

I was testing out the library by copy-pasting the code examples and found this small bug. I spend a surprisingly long time in locating the error :P 

Keep up the good work :+1: