hello <@U01NZ4D0LDD> :wave:, I’m having a question...
# community-help
s
hello @Jason Bosco šŸ‘‹, I’m having a question about the typesense-php package. I’m using the export on the documents to retrieve them. is there a way to return a valid object to parse as JSON? what I now get if I fetch them are in this format, which is harder to use
Copy code
'{\"dateCreated\":1650899280,\"id\":\"16\",\"slug\":\"this-is-stefs-blog\",\"title\":\"This is stefs blog\"}
{\"dateCreated\":1650899280,\"id\":\"18\",\"slug\":\"this-is-blog-2\",\"title\":\"This is blog 2\"}
{\"dateCreated\":1652793840,\"id\":\"51\",\"slug\":\"test\",\"title\":\"test\"}'
j
@Stefanie Gevaert That's in JSON Lines format for performance reasons. If you split the string by
\n
and then JSON parse each line in a loop, you'll get an array of objects
s
okay, thx for the info @Jason Bosco šŸ‘
šŸ‘ 1