This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.util.regex.Pattern; | |
import org.apache.commons.lang.RandomStringUtils; | |
import org.apache.commons.lang.StringUtils; | |
import org.apache.commons.lang.math.RandomUtils; | |
import static java.lang.String.*; | |
import static java.util.Arrays.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class MutableJson { | |
public static void main(String[] args) { | |
MutableJson json = new MutableJson( | |
new HashMap<String, Object>() {{ | |
put("store", new HashMap<String, Object>() {{ | |
put("name", "Some Store"); | |
put("books", Arrays.asList( |