Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nigel Kukard
allworldit
Commits
daabb16e
Commit
daabb16e
authored
Jun 12, 2016
by
Nigel Kukard
Browse files
jsonnet looks better for syntax highlighting
parent
781f86aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Data Formats/JSON.md
View file @
daabb16e
...
@@ -134,14 +134,14 @@ The purpose of this field is to signify the status of the action just performed.
...
@@ -134,14 +134,14 @@ The purpose of this field is to signify the status of the action just performed.
### Example success
### Example success
For a brief status message one could use...
For a brief status message one could use...
```
json
```
json
net
{
{
status
:
"success"
status
:
"success"
}
}
```
```
For a full status message one could use...
For a full status message one could use...
```
json
```
json
net
{
{
status
:
"success"
,
status
:
"success"
,
message
:
"Record 17 deleted"
message
:
"Record 17 deleted"
...
@@ -149,7 +149,7 @@ For a full status message one could use...
...
@@ -149,7 +149,7 @@ For a full status message one could use...
```
```
For a successful status which returns records...
For a successful status which returns records...
```
json
```
json
net
{
{
status
:
"success"
,
status
:
"success"
,
data
:
{
data
:
{
...
@@ -162,7 +162,7 @@ For a successful status which returns records...
...
@@ -162,7 +162,7 @@ For a successful status which returns records...
```
```
For a successful status which returns a single result...
For a successful status which returns a single result...
```
json
```
json
net
{
{
status
:
"success"
,
status
:
"success"
,
data
:
{
data
:
{
...
@@ -177,7 +177,7 @@ For a successful status which returns a single result...
...
@@ -177,7 +177,7 @@ For a successful status which returns a single result...
### Example for a fail
### Example for a fail
Failures must have a mesasge field...
Failures must have a mesasge field...
```
json
```
json
net
{
{
status
:
"fail"
,
status
:
"fail"
,
message
:
"System failure, please try again later"
message
:
"System failure, please try again later"
...
@@ -185,7 +185,7 @@ Failures must have a mesasge field...
...
@@ -185,7 +185,7 @@ Failures must have a mesasge field...
```
```
Or it can be verbose...
Or it can be verbose...
```
json
```
json
net
{
{
status
:
"fail"
,
status
:
"fail"
,
message
:
"System failure, please try again later"
,
message
:
"System failure, please try again later"
,
...
@@ -202,7 +202,7 @@ Or it can be verbose...
...
@@ -202,7 +202,7 @@ Or it can be verbose...
### Example for a error
### Example for a error
An error can be brief...
An error can be brief...
```
json
```
json
net
{
{
status
:
"error"
,
status
:
"error"
,
message
:
"The contents of the 'subject' field is invalid"
message
:
"The contents of the 'subject' field is invalid"
...
@@ -210,7 +210,7 @@ An error can be brief...
...
@@ -210,7 +210,7 @@ An error can be brief...
```
```
Or it can be verbose...
Or it can be verbose...
```
json
```
json
net
{
{
status
:
"error"
,
status
:
"error"
,
message
:
"Input failed validation"
,
message
:
"Input failed validation"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment