patchboard / patchboard

Self-assembling HTTP API libraries
MIT License
38 stars 6 forks source link

RFC 7159 compatibility #67

Open PandaWhisperer opened 9 years ago

PandaWhisperer commented 9 years ago

According to RFC 7159, a JSON value may be "an object, array, number, or string, or one of the following three literal names: false null true."

Patchboard currently only accepts objects or arrays as top-level values. This is to maintain compatibility with certain JSON parsers implementations, such as Ruby's, which enforces this as well.

This should perhaps be documented and eventually changed as other parsers are updated.

automatthew commented 9 years ago

Issue for Ruby JSON: https://github.com/flori/json/issues/206