use builtin json parse/write