4 ms·
Great work! Would be nice to add an option to convert json key names to human-friendly names(passed as a separate key value array). So a key like full_name can
by badclient 13y ago
Great work! Would be nice to add an option to convert json key names to human-friendly names(passed as a separate key value array). So a key like full_name can appear as "Your Name:" to the end user.
- marianoguerra 13y agothanks! I created an issue for that: https://github.com/marianoguerra/json.human.js/issues/2 https://github.com/marianoguerra/json.human.js/issues/2 also one to customize the display of booleans (sometimes on/off, yes/no are better than true/false) https://github.com/marianoguerra/json.human.js/issues/3 https://github.com/marianoguerra/json.human.js/issues/3
- napoleond 13y agoIt might be good enough (and less complicated) to just optionally prettify camelCased and underscore_separated field names (to "Camel Case" and "Underscore Separated", respectively).