Fix missing type in JSON

I don't know if this is the preferred solution but this fixes #10.