Skip to content

Cannot parse more than one object #506

@itsHaseebSaeed

Description

@itsHaseebSaeed

I have tried everything to split json objects so that json_tokener_parse() could parse it.

My Code: json_tokener_parse() doesn't work if there are more than 1 object in the json file but works good when it have one object. I have read all the documentation but couldn't find a way to divid string objects and parse each object at a time.

[{
    "hash":"121234365869689789789fghgh",
    "time":"1999999",
    "TxIn":["121312313","21312312","23123123"]
},
{
    "hash":"221234365869689789789fghgh",
    "time":"2999999",
    "TxIn":["2121312313","21312312","23123123"]
},
{
    "hash":"321234365869689789789fghgh",
    "time":"3999999",
    "TxIn":["3121312313","21312312","23123123"]
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions