Clover icon

Coverage Report

  1. Project Clover database Mon Nov 18 2024 09:38:20 GMT
  2. Package org.json

File JSONString.java

 

Code metrics

0
0
0
1
20
5
0
-
-
0
-

Classes

Class Line # Actions
JSONString 11 0 0
-1.0 -
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package org.json;
2   
3    /**
4    * The <code>JSONString</code> interface allows a <code>toJSONString()</code>
5    * method so that a class can change the behavior of
6    * <code>JSONObject.toString()</code>, <code>JSONArray.toString()</code>, and
7    * <code>JSONWriter.value(</code>Object<code>)</code>. The
8    * <code>toJSONString</code> method will be used instead of the default behavior
9    * of using the Object's <code>toString()</code> method and quoting the result.
10    */
 
11    public interface JSONString
12    {
13    /**
14    * The <code>toJSONString</code> method allows a class to produce its own JSON
15    * serialization.
16    *
17    * @return A strictly syntactically correct JSON text.
18    */
19    public String toJSONString();
20    }