From 97d2bf5e66a6913f9ea20044a3e4be93d4447bf0 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Mon, 18 Jan 2016 00:52:45 -0500 Subject: [PATCH] Update reader and writer to RFC 7159. --- .../java/com/squareup/moshi/JsonReader.java | 11 +-- .../java/com/squareup/moshi/JsonWriter.java | 29 +++----- .../com/squareup/moshi/JsonReaderTest.java | 70 +++++++------------ .../com/squareup/moshi/JsonWriterTest.java | 36 +++++++++- 4 files changed, 73 insertions(+), 73 deletions(-) diff --git a/moshi/src/main/java/com/squareup/moshi/JsonReader.java b/moshi/src/main/java/com/squareup/moshi/JsonReader.java index 3f70b6b..d26d563 100644 --- a/moshi/src/main/java/com/squareup/moshi/JsonReader.java +++ b/moshi/src/main/java/com/squareup/moshi/JsonReader.java @@ -23,7 +23,7 @@ import okio.BufferedSource; import okio.ByteString; /** - * Reads a JSON (RFC 4627) + * Reads a JSON (RFC 7159) * encoded value as a stream of tokens. This stream includes both literal * values (strings, numbers, booleans, and nulls) as well as the begin and * end delimiters of objects and arrays. The tokens are traversed in @@ -272,7 +272,7 @@ public class JsonReader implements Closeable { /** * Configure this parser to be liberal in what it accepts. By default * this parser is strict and only accepts JSON as specified by RFC 4627. Setting the + * href="http://www.ietf.org/rfc/rfc7159.txt">RFC 7159. Setting the * parser to lenient causes it to ignore the following syntax errors: * *