rspencer01 / microjson

A feature-few, no-allocation JSON parser in `no_std` rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`JSONValue::read_string()` should return a newtype wrapper

Muon opened this issue · comments

For the sake of ergonomics, since the value returned by JSONValue::read_string() does not have escapes processed, a newtype wrapper, call it JSONString, should be returned instead. This would help prevent mistakes such as accidentally using the result as a fully processed string.