inline json in page, support multiple versions