toJson#

swordfish.function.toJson()#

Convert a DolphinDB object to JSON format. The result includes 5 key-value pairs: name, form, type, size and value.

For different data forms, the maximum length of the data to be converted differs:

Data Forms

Max Length

matrix

300000

set

300000

vector

300000

dict

300000

table

100000

Parameters:

obj (Constant) – Can be any data type.