Thanks. You might want to recheck the output of that new api command though. There seem to be quotation marks missing from around some of the values types that are surrounded by quotation marks elsewhere in the output. Of course, I don't know what your original intentions were, but it does not look to be consistently implemented.
Sorry about that, thats what I get for writing it quickly

Give it another shot, I think everything should be cast properly (was an issue with values coming back from our cache layer as strings rather than the proper data type).