Use numbers instead of strings in JSON

Note that the key for the SQLite db needs to be a string, which is why line 233 grabs the `stringValue`