Rename toJsonValue into jsonStringify, close #2405