Fixed a small JSONType bug,

The type wasn't being set correctly.