At my internship the head of R&D department asked me to create an interface for their API with Javascript. Now I'm quite new to Javascript and I've encountered my first problem, which is I need to implement the JSON strings in a Javascript code for the interface.
I'm quite unfamiliar with JSON, I've search info on Google and found out it was a more readable language based from Javascript? Now this doesn't exactly brings me any further. Any of you guys have an idea or proposition on how I can approach this issue?
Here are some JSON strings of the API:
Body Parameters
AccountCredentials
Name Description Type Additional information
username string None.
password string None.
Request Formats
application/json, text/json
Sample:
`{
"username": "sample string 1",
"password": "sample string 2"
}`
Application/xml, text/xml
Sample:
`<AccountCredentials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.com/ProdistERP.Web.API.Controllers">
<password>sample string 2</password>
<username>sample string 1</username>
</AccountCredentials>`
As you can see there is also a XML format under the JSON format.