JSON format

Beas service layer is working in general with JSON format

 

{"Property":Value}

 

The property is always in double quote
The value is defined in follow way

 

Data type

Description

String

Define string in double quote, example

"ItemCode":"FP"

 

Special chars: use escape character

 

Example

"ItemName":"Wheel 28\""   -> means: Wheel 20"

Boolean

Define boolean with true or false

example: "Active":true

Number / Decimal

Define decimal places always with point

 

Example

 

"Quantity":20.4

DateTime, Date

In JSON Date and Date times define as string

Beas support follow syntax

 

yyyy-mm-ddThh:mm:ssZ

 

Area 1- 10 describe the date
Area 12 - 19 the time

 

Possible for post/put

yyyy-mm-dd

yyyy-mm-ddThh:mm

 

Not possible

Thh:mm

yyyy-mmThh:mm

 

All other variants  defined in ISO 8601 not supported

 

Example:

"StartDateTime":"2021-11-15T10:15"