docs: add example backend response JSON

swadhinbiswas committed 8 months ago
0886cef
1 parent 40f2eb6
commit 0886cef
1 file changed
+36 -0
Showing 1 changed file+36-0
▼example-response.json
+36-0
1
+{
2
+ "issues": [
3
+ {
4
+ "type": "grammar",
5
+ "original": "me and him went",
6
+ "suggestion": "he and I went",
7
+ "reason": "Subject-verb agreement error.",
8
+ "offset": 0,
9
+ "length": 15
10
+ },
11
+ {
12
+ "type": "spelling",
13
+ "original": "teh",
14
+ "suggestion": "the",
15
+ "reason": "Misspelled word.",
16
+ "offset": 20,
17
+ "length": 3
18
+ },
19
+ {
20
+ "type": "clarity",
21
+ "original": "utilize",
22
+ "suggestion": "use",
23
+ "reason": "Simpler word choice.",
24
+ "offset": 45,
25
+ "length": 7
26
+ },
27
+ {
28
+ "type": "style",
29
+ "original": "mistakes were made",
30
+ "suggestion": "we made mistakes",
31
+ "reason": "Passive voice.",
32
+ "offset": 60,
33
+ "length": 18
34
+ }
35
+ ]
36
+}
0
37