Cassandra表查询以下具有嵌套List对象的JSON

时间:2019-04-17 14:55:44

标签: cassandra cql nosql-injection

我是Cassandra和noSql的新手。我有下面的JSON,但是我不明白如何在JSON下为此编写代码创建表。甚至我都不知道是否有任何限制。如下:

{"product":[{"id":"12345","name":"product1","details":[{"color":"red","price":"100 rs"},{"color":"blue","price":"100 rs"}]},{"id":"123456","name":"product16","details":[{"color":"red","price":"100 rs"},{"color":"blue","price":"100 rs"}]},{"id":"1234567","name":"product111","details":[{"color":"red","price":"100 rs"},{"color":"blue","price":"100 rs"}]}]}

我进行了一些研究,但找不到任何解决方案。

0 个答案:

没有答案