JSON Integer


Author
Message
Email User
Email User
I'm hooked (409 reputation)I'm hooked (409 reputation)I'm hooked (409 reputation)I'm hooked (409 reputation)I'm hooked (409 reputation)I'm hooked (409 reputation)I'm hooked (409 reputation)I'm hooked (409 reputation)I'm hooked (409 reputation)
Group: Forum Members
Posts: 36, Visits: 115
I have a JSON log file. One field is an integer, level. This represents the loglevel (i.e. 50 means this was an error).

I am trying to figure out if the JSON parser is able to parse this field. It seems that JSON parser expects all of the fields to be of string type (at least that's based on the examples on this site). Can you please verify if it is at all possible to parse this field and have it output its corresponding loglevel as a string (i.e. ERROR, INFO, etc)?

Edited 7 Years Ago by Email User
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Login

Explore
Messages
Mentions
Search