included demo2 json code