1.0.3: handle json properly, thanks to @loktacar