Extract json helper method