working json interaction