#!/usr/bin/env bats load $BATS_TEST_DIRNAME/helper/common.bash setup() { setup_common } teardown() { teardown_common } @test "json: Create table with JSON column" { run dolt sql <&"}'); SQL run dolt sql -q "SELECT * FROM js;" -r csv [ "$status" -eq 0 ] [ "${lines[1]}" = '1,"{""a"": ""<>&""}"' ] } @test "json: insert array with special characters" { dolt sql <&"}]'); SQL run dolt sql -q "SELECT * FROM js;" -r csv [ "$status" -eq 0 ] [ "${lines[1]}" = '1,"[{""a"": ""<>&""}]"' ] } @test "json: insert json object with keys out of order" { # JSON map keys are sorted k by length then alphabetically dolt sql <