Skip to content

Commit

Permalink
[swss-common] Remove object type argument from json array() construct…
Browse files Browse the repository at this point in the history
…or call.

Default value set to value_t::array in constructor.
Issue: sonic-net/sonic-sairedis#801

Signed-off-by: Rajkumar Pennadam Ramamoorthy <rpennadamram@marvell.com>
  • Loading branch information
rajkumar38 committed Mar 11, 2021
1 parent a3dfaa7 commit 4870fe1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/json_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,12 @@ TEST(JSON, test)
}
file.close();
}

TEST(JSON, Array)
{
json arr = json::array();
json::array_t a;
json arr1(a);
EXPECT_TRUE(arr.is_array());
EXPECT_TRUE(arr1.is_array());
}

0 comments on commit 4870fe1

Please sign in to comment.