Data Saved:
Expected output:
{ "region" : "india", "dev": "inhouse", "localPath": "D:\\s3-downloads\\", "Name" : "test-1.0.8.zip", "FolderLoc": "D:\\s3-downloads\\dev", "FileName": "D:\\s3-downloads\\dev\\Archive" }
Actual Output:
{
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "{"
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "\"region\" : \"india\","
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "\"dev\": \"inhouse\","
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "\"localPath\": \"D:\\\\s3-downloads"
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "\","
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "\"Name\" : \"test-1.0.8.zip\","
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "\"FolderLoc\": \"D:\\\\s3-downloads"
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "dev\","
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "\"FileName\": \"D:\\\\s3-downloads\\\\dev"
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "Archive\""
},
{
"type": "hardBreak"
},
{
"type": "text",
"text": "}"
}
]
}
]
}
The API already returns data in JSON format.
If you want to store as JSON, write JSON into a text field. If you want plain text, stored as JSON, you'll need to write a new custom field type that can take input and reformat it as JSON, and return it in a viewable format that you prefer (noting that if that is JSON, the API will return JSON within JSON)
Thanks, your suggestions has resolved the issue. But I got limitation over there, when am using custom text field, character limit is set to 255.
If I make any changes in the limit of text fields, will impact existing custom text fields too.
How do I increase the limit only to specific fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.