Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 7 Materials and Homework.

Registrations still open!


question

nirjharray avatar image
nirjharray asked ·

Is there support for a JSON data type in CQL?

Is there support for JSON data type in CQL?

workshopdata modelingcql
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

There isn't a native JSON data type but you can store JSON-like strings in a text type.

Just note that it isn't an ideal way if you need to be able to query elements in the JSON independently because it will be stored as a single value. Cheers!

1 comment Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

[Follow up question posted in #6765]

0 Likes 0 · ·