Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bombela
on June 15, 2023
|
parent
|
context
|
favorite
| on:
Native JSON Output from GPT-4
It's harder to form a tree with key value. I also tried the relational route. But it would always messup the cardinality (one person should have 0 or n friends, but a person has a single birth date).
sheepscreek
on June 15, 2023
|
next
[–]
You could flatten it using namespaced keys. Eg.
{ parent1: { child1: value } }
Becomes one of the following:
parent1/child1=value parent1_child1=value parent1.child1=value
..you get the idea.
rubyskills
on June 15, 2023
|
prev
[–]
It's also harder to stream JSON? Maybe I'm overthinking this.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: