HomePhabricator

newlines in strings are invalid JSON
65b03282c9cbUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

newlines in strings are invalid JSON

Although script_valid.json and script_invalid.json are loaded correctly by the
JSON interpreter used by bitcoin core, these same files are often used by other
libraries and do not necessarily load correctly due to the fact that newlines
contained inside strings are not valid and must instead use the escape
character \n. The files tx_valid.json and tx_invalid.json handle this
correctly, so I've changed the formatting in script_valid.json and
script_invalid.json to mirror those files.

Details

Provenance
Ryan X. Charles <ryanxcharles@gmail.com>Authored on Dec 2 2014, 18:02
deadalnixPushed on May 14 2017, 22:04
Parents
rABC0286fe5b3be2: Merge pull request #5401
Branches
Unknown
Tags
Unknown

Event Timeline

Ryan X. Charles <ryanxcharles@gmail.com> committed rABC65b03282c9cb: newlines in strings are invalid JSON (authored by Ryan X. Charles <ryanxcharles@gmail.com>).Dec 2 2014, 18:02