Messages from import (source = 'import') in raw_inbox always contain valid JSON, but the value inside is not necessarily an object. Parse these messages and show what kind of JSON value each one contains.
What to return:
- msg_id — the message ID
- json_type — the value type as PostgreSQL names it: object, array, string, number, boolean or null
Keep in mind:
- body is stored as plain text
- include only messages with source = 'import'
- leave out other sources: some of their bodies cannot be parsed as JSON
Sort by msg_id ascending.
msg_idjson_typeSign in to see submission history
Sign inSign in to use AI Mentor
Sign in