Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3312b297 authored by Jesse Wilson's avatar Jesse Wilson
Browse files

Fix typos in JSON documentation.

Change-Id: Ife519f755b1974adee13553cd4dfa2b15dd23aac
parent cd9afc37
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,8 +31,8 @@ import java.util.List;
 * Within JSON objects, name/value pairs are represented by a single token.
 *
 * <h3>Parsing JSON</h3>
 * To create a recursive descent parser your own JSON streams, first create an
 * entry point method that creates a {@code JsonReader}.
 * To create a recursive descent parser for your own JSON streams, first create
 * an entry point method that creates a {@code JsonReader}.
 *
 * <p>Next, create handler methods for each structure in your JSON text. You'll
 * need a method for each object type and for each array type.
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ import java.util.List;
 * This code encodes the above structure: <pre>   {@code
 *   public void writeJsonStream(OutputStream out, List<Message> messages) throws IOException {
 *     JsonWriter writer = new JsonWriter(new OutputStreamWriter(out, "UTF-8"));
 *     writer.setIndentSpaces(4);
 *     writer.setIndent("  ");
 *     writeMessagesArray(writer, messages);
 *     writer.close();
 *   }